from rest_framework import serializers
from recruit.models import Enterprise
from user.models import User

# 个人中心简单版办Enterprise序列化器
class EnterpriseSimpleSerializerView(serializers.ModelSerializer):

    recruits = serializers.PrimaryKeyRelatedField(many=True,queryset=User.objects)

    class Meta:
        model = Enterprise
        fields = '__all__'
